Rails Scaffold problem # undefined method `edit_pais_path'
Posted
by Bruno Cordeiro
on Stack Overflow
See other posts from Stack Overflow
or by Bruno Cordeiro
Published on 2010-04-09T19:36:14Z
Indexed on
2010/04/09
19:53 UTC
Read the original article
Hit count: 379
ruby-on-rails
I created a scaffold of named pais (This is a word in Portuguese of Brazil and is the same that country), i created using the follow command:
ruby script\generate scaffold pais name:string abreviattion:string
First I changed the inflections to my local idiom, like that:
inflect.plural /^([a-zA-z]*)s$/i, '\1ses' #The plural of Pais is Paises
And when I tryied to open the page on http://localhost:3000/paises I'm receiving the follow error:
undefined method `edit_pais_path' for #<ActionView::Base:0x387fdf4>
Thanks in advance.
© Stack Overflow or respective owner